import request from "@/axios";

export function getStationList(){
     return request({
         url: '/dm/logistics/stationlist',
         method: 'get'
     })
}

export function getLogisticsInfo(id){
    return request({
        url: '/dm/logistics/info/' + id,
        method: 'get'
    })
}

export function getSendingList(departDate, status){
    return request({
        url: '/dm/logistics/list',
        method: 'get',
        params: {
            departDate,
            status
        }
    })
}

export function saveLogistics(data){
    return request({
        url: '/dm/logistics/save/' + data.orderId + '/' + data.id,
        method: 'post',
        data
    })
}

export function updateLogistics(data){
    return request({
        url: '/dm/logistics/update',
        method: 'post',
        data
    })
}

export function servicedExpress(id){
    return request({
        url: '/dm/logistics/serviced/' + id,
        method: 'get',
    })
}

export function getExpressList(stationId, size){
    return request({
        url: '/dm/logistics/expresslist',
        method: 'get',
        params: {
            stationId,
            size
        }
    })
}

export function getExpressInfo(id){
    return request({
        url: '/dm/logistics/expressinfo/' + id,
        methods: 'get'
    })
}